package com.scpii.universal.pns.hibernate.entity;


/**
 * Address entity. @author MyEclipse Persistence Tools
 */

public class Address implements java.io.Serializable {

	private static final long serialVersionUID = 8919740541928550499L;
	// Fields

	private Long id;
	private String title;
	private String addressLine;
	private Double lati;
	private Double longi;
	private String createDt;
	private Long createBy;
	private String updateDt;
	private Long updateBy;
	private Long targetId;
	private String phoneNumber;

	// Constructors

	/** default constructor */
	public Address() {
	}

	/** minimal constructor */
	public Address(String title) {
		this.title = title;
	}

	/** full constructor */
	public Address(String title, String addressLine, Double lati, Double longi,
			String createDt, Long createBy, String updateDt,
			Long updateBy, Long targetId, String phoneNumber) {
		this.title = title;
		this.addressLine = addressLine;
		this.lati = lati;
		this.longi = longi;
		this.createDt = createDt;
		this.createBy = createBy;
		this.updateDt = updateDt;
		this.updateBy = updateBy;
		this.targetId = targetId;
		this.phoneNumber = phoneNumber;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAddressLine() {
		if(this.addressLine==null)
			return "";
		return this.addressLine;
	}

	public void setAddressLine(String addressLine) {
		this.addressLine = addressLine;
	}

	public Double getLati() {
		return this.lati;
	}

	public void setLati(Double lati) {
		this.lati = lati;
	}

	public Double getLongi() {
		return this.longi;
	}

	public void setLongi(Double longi) {
		this.longi = longi;
	}

	public String getCreateDt() {
		return this.createDt;
	}

	public void setCreateDt(String createDt) {
		this.createDt = createDt;
	}

	public String getUpdateDt() {
		return this.updateDt;
	}

	public void setUpdateDt(String updateDt) {
		this.updateDt = updateDt;
	}

	public Long getTargetId() {
		return this.targetId;
	}

	public void setTargetId(Long targetId) {
		this.targetId = targetId;
	}

	public String getPhoneNumber() {
		return this.phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Long getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public Long getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

}